package books4africa

import org.springframework.dao.DataIntegrityViolationException
import grails.plugins.springsecurity.Secured

class ProfileController {

 
	def springSecurityService
	def scaffold = true   

	def index() { 
		
	}
	def currentUser(){
		Donor.get(springSecurityService.principal.id)
	
	}
	
	
	//@Secured(['ROLE_USER'])
	def profileView = {
		//def user = currentUser()
		[Donor: currentUser()]
	}	
}
